//
//  StoreCategoryModel.m
//  YongChuanTradingArea
//
//  Created by 李冰 on 2017/10/12.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import "StoreCategoryModel.h"

@implementation StoreCategoryModel

@end
@implementation HomeCategoryModel

+(NSArray *)defaultModels {
    
    NSMutableArray *datas = [NSMutableArray new];
    NSArray *names = @[@"餐饮美食", @"我爱我车", @"运动健身",
                       @"酒店住宿", @"生活服务", @"结婚服务",
                       @"休闲娱乐", @"代金券", @"旅游/周边游",
                       @"家装建材", @"丽人", @"全部"];
    NSArray *images = @[@"ic_function_01", @"ic_function_05", @"ic_function_02",
                        @"ic_function_06", @"ic_function_03", @"ic_function_07",
                        @"ic_function_04", @"ic_function_08", @"ic_function_09",
                        @"ic_function_10", @"ic_function_11", @"ic_function_12",];
    NSArray *ID = @[@(29), @(19), @(24),
                    @(27), @(23), @(21),
                    @(28), @(22), @(26),
                    @(20), @(25), @(-1),];
    for (int i = 0; i < 12; i++)
    {
        HomeCategoryModel *model = [HomeCategoryModel new];
        model.imageName = images[i];
        model.Name = names[i];
        model.Id = [ID[i] integerValue];
        [datas addObject:model];
    }
    
    
    //    [{"Id":19,"Name":"我爱我车","ParentId":0},
    //    {"Id":20,"Name":"家装建材","ParentId":0},
    //    {"Id":21,"Name":"结婚服务","ParentId":0},
    //    {"Id":22,"Name":"购物","ParentId":0},
    //    {"Id":23,"Name":"生活服务","ParentId":0},
    //    {"Id":24,"Name":"运动健身","ParentId":0},
    //    {"Id":25,"Name":"丽人","ParentId":0},
    //    {"Id":26,"Name":"旅游\/周边游","ParentId":0},
    //    {"Id":27,"Name":"酒店","ParentId":0},
    //    {"Id":28,"Name":"休闲娱乐","ParentId":0},
    //    {"Id":29,"Name":"餐饮美食","ParentId":0}]
    
    return datas;
}

@end
